﻿<html><body background="img/background.gif"><?java 	
	StringBuilder sb = new StringBuilder();
	List<Chapter> chapters = dao.getChapters();
	sb.append("<hr><h1>Главы: </h1>\n<form action=\"./test.j\"><table>");
	for (Chapter chapter : chapters) {
	    sb.append("\n<tr><td><a href = \"./chapter.j?id=" + chapter.getId()
		    + "\"> Глава " + chapter.getId() + " - "
		    + chapter.getName()
		    + "</a></td><td><input type=\"checkbox\" name=\"" + chapter.getId()
		    + "\"> </td></tr>");
	}
	sb.append("\n</table>\n<hr>\n<input type=submit value=\"Начать тестирование\">\r\n" + "</form>");
	return sb.toString();?java></body><html>